import axios from "@/utils/request.js"

// 1、获取所有文章列表数据
export const getPostList = (params) => {
    return axios({
        url: '/post_search',
        params
    })
}
// 2、发布文章
export const publishThisPost = (data) => {
    return axios({
        method: 'post',
        url: '/post',
        data
    })
}